/**
 * 
 */
package com.et114.modules.org.services;
//import com.et114.core.exception.CheckException;
import com.et114.core.common.AppContext;
import com.et114.modules.org.services.FunctionManager;

/**
 * @author guanhw
 */
public class OrgFactory {
	
	public static final String ORG_FUNCMANGER = "functionManager" ; 
	public static final String ORG_ROLEMANAGER = "roleManager" ;
	public static final String ORG_USERMANAGER = "userManager" ; 
	public static final String ORG_TITLEMANAGER = "titleManager" ; 
	public static final String ORG_ACLMANAGER = "aclManager" ;
	public static final String ORG_GROUPMANAGER = "groupManager";
	
	/**
	 * 
	 */
	public OrgFactory ( ) {
		// TODO Auto-generated constructor stub
	}
	
	
	public static FunctionManager getFunctionManager( )  {
		return ( FunctionManager ) AppContext.getBean ( ORG_FUNCMANGER ) ; 
	}
	
	public static RoleManager getRoleManager( ) { 
		return ( RoleManager ) AppContext.getBean ( ORG_ROLEMANAGER ) ; 
	}
	
	public static UserManager getUserManager( )  {  
		return ( UserManager )  AppContext.getBean ( ORG_USERMANAGER ) ;
	}
	
	public static TitleManager getTitleManager( )  {   
		return ( TitleManager )  AppContext.getBean ( ORG_TITLEMANAGER ) ;
	}
	
	public static GroupManager getGroupManager( ) {  
		return ( GroupManager ) AppContext.getBean ( ORG_GROUPMANAGER ) ;
	}
	
	public static AclManager getAclManager( )  {  
		return ( AclManager ) AppContext.getBean ( ORG_ACLMANAGER ) ;
	}	
}
